package com.education.online.service;


import com.education.online.pojo.OCatalogLesson;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 专业课程体系表 服务层
 *
 * @author d
 * @date 2020-06-04 15:17:49
 */
public interface OCatalogLessonService {


    //按照课程名称搜索
    public List<OCatalogLesson> selectOCatalogLessonByCatalogName(String catalogName);

    //查询二级目录下的所有课程
    public List<OCatalogLesson> selectBuyOCatalogLessonByTwoMenuId(List<Integer> menuIds,Integer userId);
    //查询二级目录下的所有课程  未购买
    public List<OCatalogLesson> selectNotBuyOCatalogLessonByTwoMenuId(List<Integer> menuIds,Integer id);

    //查询已购买课程
    public List<OCatalogLesson> selectOCatalogLessonByUserId(Integer userId,Integer id);

    //查询未购买课程
    public List<OCatalogLesson> selectNotOCatalogLessonByUserId(Integer userId,Integer id);


    //查询专业课程体系表信息**************************
    public OCatalogLesson selectOCatalogLessonById(Integer id);

    //查询专业课程体系表列表
    public List<OCatalogLesson> selectOCatalogLessonList(OCatalogLesson oCatalogLesson);

    //新增专业课程体系表
    public int insertOCatalogLesson(OCatalogLesson oCatalogLesson);

    //修改专业课程体系表
    public int updateOCatalogLesson(OCatalogLesson oCatalogLesson);

    //删除专业课程体系表信息
    public int deleteOCatalogLessonByIds(String ids);
}